﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Microsoft.Practices.Unity;
using Praxis.Entities;
using Praxis.BusinessLogic;

namespace Praxis.UI
{
    public partial class FrmDevolucion : Form
    {

        [Dependency]
        public IEntregaBL entregaBL { get; set; }

        [Dependency]
        public IDevolucionBL devolucionBL { get; set; }

       // [Dependency]
        //public IDetalleDevolucionBL detDevolucionBL { get; set; }

        public FrmDevolucion()
        {
            InitializeComponent();
            this.BuildUp();
        }

        private void BtnNuevo_Click(object sender, EventArgs e)
        {
            FrmMttoDevolucion frm = new FrmMttoDevolucion();
            frm.Show();
            this.Hide();
        }

        private void BtnEditar_Click(object sender, EventArgs e)
        {
            FrmMttoDevolucion frm = new FrmMttoDevolucion();
            frm.Show();
            this.Hide();
        }

        private void FrmDevolucion_Load(object sender, EventArgs e)
        {
            dEVOLUCIONBindingSource.DataSource = devolucionBL.GetAllDevoluciones();
        }
    }
}
